package com.wzqj.agent.web.service;


import java.util.Map;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.wzqj.agent.common.exception.BusinessException;

public interface MerchantService {

	/**
	 * 获取商户列表
	 * @param params 包含店铺mcode,商户平台登陆phone
	 * @return
	 */
	JSONArray merchantListPage(final Map<String, Object> params);
	
	JSONObject getMerchantByPhone(Integer userId,String phone);
	
	JSONObject getMerchantByMcode(Integer userId, String mcode);
	
	JSONArray getMerchants(Integer userId);
	/**
	 * 开通商户
	 * @param phone
	 * @param password
	 * @return
	 * @throws BusinessException
	 */
	JSONObject register(String phone,String password) throws BusinessException;
	/**
	 * 添加资质
	 * @param phone
	 * @param uid
	 * @return
	 */
	String addQualification(String phone, String uid);
	/**
	 * 根据手机号获取商户信息
	 * @param phone
	 * @return
	 */
	JSONObject getMerchant(String phone);
}
